package com.le.tester.javaThink.fifth.chapter24_ConcurrentProgramming;

/**
 * createTime：2021/8/23 15:19
 * description：StaticIDField 是否有id
 */
public class StaticIDField implements HasID {

    private static int counter = 0;

    private int id = counter++;

    @Override
    public int getID() {
        return id;
    }
}
